-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(payments): Update Checkout component to utilize Tailwind #14000
Conversation
showFxaLegalFooterLinks={true} | ||
/> | ||
} | ||
|
||
<PaymentProcessing | ||
provider="paypal" | ||
className={classNames({ | ||
hidden: !transactionInProgress || subscriptionError, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Investigating - I tried to convert this like the others, but the test would fail. 🤨
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looked into this. Keep it. Bringing part of our Slack discussion here, more work needs to be done and a follow up ticket to PaymentProcessing
, which includes other components (e.g. SubscriptionTitle
and PaymentLegalBlurb
). It currently fails DRY and needs a few updates made to its tests and what is expected to be/not to be in the document.
grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr); | ||
grid-gap: 20px; | ||
&:before, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Investigating - When I converted this to Tailwind the border appeared thicker
Edit: Figured out grid-template-columns
, still stumped by the border thickness.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep for now. Borders have to be updated for all components and later subscriptions. Either a new ticket will be filed or added to existing ticket regarding TW global/shared styles.
? null | ||
: <SubscriptionTitle screenType="create" /> | ||
} | ||
|
||
<div |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Investigating (though not a blocker as we can handle this in its ticket) - when I tried converting this to remove classNames
, the test would fail.
Edit: Should I take this out since we will be filing a ticket to update SubscriptionCreate
anyways?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed that this isn't a blocker. Keep for now as a fallback and add a note to the ticket (and/or a comment above) to remove once SubscriptionCreate
has been updated.
packages/fxa-payments-server/src/routes/Checkout/index.stories.tsx
Outdated
Show resolved
Hide resolved
4c51adb
to
b0310c2
Compare
7d7047e
to
bd215e5
Compare
9ea4d84
to
3fead0b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r+ 👍 .
See individual comments.
showFxaLegalFooterLinks={true} | ||
/> | ||
} | ||
|
||
<PaymentProcessing | ||
provider="paypal" | ||
className={classNames({ | ||
hidden: !transactionInProgress || subscriptionError, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looked into this. Keep it. Bringing part of our Slack discussion here, more work needs to be done and a follow up ticket to PaymentProcessing
, which includes other components (e.g. SubscriptionTitle
and PaymentLegalBlurb
). It currently fails DRY and needs a few updates made to its tests and what is expected to be/not to be in the document.
grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr); | ||
grid-gap: 20px; | ||
&:before, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep for now. Borders have to be updated for all components and later subscriptions. Either a new ticket will be filed or added to existing ticket regarding TW global/shared styles.
? null | ||
: <SubscriptionTitle screenType="create" /> | ||
} | ||
|
||
<div |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed that this isn't a blocker. Keep for now as a fallback and add a note to the ticket (and/or a comment above) to remove once SubscriptionCreate
has been updated.
3fead0b
to
0bd7352
Compare
Because
This pull request
pay-with-heading
's&:before
and&:after
Additional components
PaypalButton
- Moved outer div's className into componentPaymentMethodHeader
- Updated to utilized shared classstep-header
PlanDetails
- Revised color of coupon info logo and text to a darker green for better color contrast against its backgroundSubscriptionTitle
- Movedtext-align
to its own lineChecklist
Put an
x
in the boxes that applyScreenshots (Optional)
Before / After